package com.test.demo.webflux.web.controller;

import com.test.demo.webflux.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("mvc")
public class MVCController {

    @Autowired
    private TestService testService;

    @GetMapping("t1")
    public String t1() {
        return testService.t1();
    }

    @GetMapping("t2")
    public List<String> t2() {
        return testService.t2();
    }

}
